﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using ARR.Entities;
using ARR.Services.Domain;
using Telerik.Web.UI;
using Telerik.Charting;

namespace ARR.Services
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "QueriesService" in both code and config file together.
    public class ReportsService : IReportsService
    {
        public byte[] GetSalesCategoryComparison(int rangeReviewId, int categoryId)
        {
            return ReportsDomain.GetSalesCategoryComparison(rangeReviewId, categoryId);
        }

        public byte[] GenerateExecutiveSummaryReport(int rangeReviewId)
        {
            return ReportsDomain.GenerateExecutiveSummaryReport(rangeReviewId);
        }

        public List<SalesCategoryComparisonPareto> GetSalesCategoryComparisonPareto(int rangeReviewId, int categoryId)
        {
            return ReportsDomain.GetSalesCategoryComparisonPareto(rangeReviewId, categoryId);
        }

        public List<ARR.Entities.Gateways.SalesCategoryComparisonByDateRow> GetSalesCategoryComparisonByDate(int rangeReviewId, int categoryId)
        {
            return ReportsDomain.GetSalesCategoryComparisonByDate(rangeReviewId, categoryId);
        }

        public List<SalesCategoryComparisonBySpace> GetSalesCategoryComparisonBySpace(int rangeReviewId, int categoryId)
        {
            return ReportsDomain.GetSalesCategoryComparisonBySpace(rangeReviewId, categoryId);
        }

        public IList<ImporterResult> ValidateCategoryReportGeneration(RangeReview rangeReview, int categoryId)
        {
            return ReportsDomain.ValidateCategoryReportGeneration(rangeReview, categoryId);
        }
    }
}
